package com.lch.designpattern.singleton.hungry;

/**
 * 饿汉式单例模式
 * @author: liuchenhui
 * @create: 2019-04-15 09:31
 **/
public class HungrySingleton {

    private static HungrySingleton hungrySingleton = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return hungrySingleton;
    }
}
